package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2019-11-06
 */
public class Menu1 extends Model<Menu1> {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 名称
     */
    private String name;

    private Date time;

    /**
     * 优先级
     */
    private Integer priority;

    private String icon;

    public Menu1() {
    }

    public Menu1(String id, String name, Date time, Integer priority, String icon) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.priority = priority;
        this.icon = icon;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Menu1{" +
            "id=" + id +
            ", name=" + name +
            ", time=" + time +
            ", priority=" + priority +
            ", icon=" + icon +
        "}";
    }
}
